package edu.xust.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class Station implements Serializable {
    private String sid;

    private String stationname;

    private String stationmanngernmae;

    private String stationmanngertel;

    private String stationnum;

    private String stationpass;

    private String stationimage;

    private static final long serialVersionUID = 1L;

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getStationname() {
        return stationname;
    }

    public void setStationname(String stationname) {
        this.stationname = stationname;
    }

    public String getStationmanngernmae() {
        return stationmanngernmae;
    }

    public void setStationmanngernmae(String stationmanngernmae) {
        this.stationmanngernmae = stationmanngernmae;
    }

    public String getStationmanngertel() {
        return stationmanngertel;
    }

    public void setStationmanngertel(String stationmanngertel) {
        this.stationmanngertel = stationmanngertel;
    }

    public String getStationnum() {
        return stationnum;
    }

    public void setStationnum(String stationnum) {
        this.stationnum = stationnum;
    }

    public String getStationpass() {
        return stationpass;
    }

    public void setStationpass(String stationpass) {
        this.stationpass = stationpass;
    }

    public String getStationimage() {
        return stationimage;
    }

    public void setStationimage(String stationimage) {
        this.stationimage = stationimage;
    }

    public Station() {
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Station other = (Station) that;
        return (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getStationname() == null ? other.getStationname() == null : this.getStationname().equals(other.getStationname()))
            && (this.getStationmanngernmae() == null ? other.getStationmanngernmae() == null : this.getStationmanngernmae().equals(other.getStationmanngernmae()))
            && (this.getStationmanngertel() == null ? other.getStationmanngertel() == null : this.getStationmanngertel().equals(other.getStationmanngertel()))
            && (this.getStationnum() == null ? other.getStationnum() == null : this.getStationnum().equals(other.getStationnum()))
            && (this.getStationpass() == null ? other.getStationpass() == null : this.getStationpass().equals(other.getStationpass()))
            && (this.getStationimage() == null ? other.getStationimage() == null : this.getStationimage().equals(other.getStationimage()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getStationname() == null) ? 0 : getStationname().hashCode());
        result = prime * result + ((getStationmanngernmae() == null) ? 0 : getStationmanngernmae().hashCode());
        result = prime * result + ((getStationmanngertel() == null) ? 0 : getStationmanngertel().hashCode());
        result = prime * result + ((getStationnum() == null) ? 0 : getStationnum().hashCode());
        result = prime * result + ((getStationpass() == null) ? 0 : getStationpass().hashCode());
        result = prime * result + ((getStationimage() == null) ? 0 : getStationimage().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sid=").append(sid);
        sb.append(", stationname=").append(stationname);
        sb.append(", stationmanngernmae=").append(stationmanngernmae);
        sb.append(", stationmanngertel=").append(stationmanngertel);
        sb.append(", stationnum=").append(stationnum);
        sb.append(", stationpass=").append(stationpass);
        sb.append(", stationimage=").append(stationimage);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}